package com.sh;

import com.sh.serializer.Serializer;
import com.sh.spi.SpiLoader;

import java.util.Map;


public class Main {
    public static void main(String[] args) {
        SpiLoader spiLoader = new SpiLoader();
        Map<String, Class<?>> load = spiLoader.load(Serializer.class);
        load.forEach((s, aClass) -> System.out.println( s + "  =====  " + aClass));
        Serializer json = SpiLoader.getInstance(Serializer.class, "json");
        System.out.println();
    }
}
